//
//  SettingTableViewCell.m
//  Travels
//
//  Created by yanghuiyan on 16/3/20.
//  Copyright © 2016年 yanghuiyan. All rights reserved.
//

#import "SettingTableViewCell.h"
#import "DKNightVersion.h"
#define Width self.contentView.bounds.size.width
#define Height self.contentView.bounds.size.height
@implementation SettingTableViewCell

- (void)dealloc {
    
    [_label release];
    [_sw release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.label = [[UILabel alloc] initWithFrame:CGRectZero];
        self.label.dk_textColorPicker = DKColorWithColors([UIColor blackColor], [UIColor whiteColor]);

        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        self.titleLabel.dk_textColorPicker = DKColorWithColors([UIColor blackColor], [UIColor whiteColor]);
        
        self.sw = [[UISwitch alloc] initWithFrame:CGRectZero];
        
        [_label release];
        [_titleLabel release];
        
    }
    return self;
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.label.frame = CGRectMake(5*Width/416, 0, 150*Width/416, Height);


}



@end
